﻿using IndoorPosition.Server.Core.Utils;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IndoorPosition.Server.Application
{
    /// <summary>
    /// 建筑物管理逻辑接口
    /// </summary>
    public interface IBuildingService
    {
        /// <summary>
        /// 添加建筑
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<int> AddAsync(BuildingInputDto input);

        /// <summary>
        /// 删除建筑
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       Task DeleteAsync(int id);

        /// <summary>
        /// 根据ID获取建筑物信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<BuildingDto> GetAsync(int id);

        /// <summary>
        /// 分页获建筑信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedList<BuildingDto>> ListAsync(PageInputDto input);

        /// <summary>
        /// 下载模型文件
        /// </summary>
        /// <param name="fileName"></param>
        /// <returns></returns>
        Task<IActionResult> DownloadModelAsync(string fileName);
    }
}
